package java50practice;

public class Practice22 {
	public static void main(String[] args) {
		System.out.println(Factorial(5));
	}
	
	private static int Factorial(int num) {
		if (num <=1) {
			return 1;
		}
		return num * Factorial(num - 1);
	}
}
